package net.lanelife.casino.caipiao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import net.lanelife.casino.common.entity.annotation.Checked;
import net.lanelife.casino.common.entity.support.CheckableEntity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "TB_PAYMENT_MERCHANT")
public class PaymentMerchant extends CheckableEntity<Integer> {

	private static final long serialVersionUID = -8872254051574418211L;
	
	@Checked
	@Column(name = "PLATFORM_ID", nullable = false)
	private Integer platformId;
	
	@Checked
	@Column(name = "MERCHANT_NO", length = 10, nullable = false)
	private String merchantNo;
	
	@Checked
	@Column(name = "TERMINAL_NO", length = 10, nullable = false)
	private String terminalNo;
	
	@Checked
	@Column(name = "MERCHANT_NAME", length = 10, nullable = false)
	private String merchantName;
	
	@Checked
	@Column(name = "MERCHANT_KEY", length = 100, nullable = false)
	private String key;
	
	@Checked
	@Column(name = "FEE_PERCENT", nullable = false)
	private Double feePercent;
	
	@Checked
	@Column(name = "CURRENT_BALANCE", nullable = false)
	private Double currentBalance = 0D;
	
	@Checked
	@Column(name = "WARNING_AMOUNT", nullable = false)
	private Double warningAmount = 0D;
	
	@Checked
	@Column(name = "AVAILABLE", nullable = false)
	private Boolean available = Boolean.TRUE;

	public Integer getPlatformId() {
		return platformId;
	}

	public void setPlatformId(Integer platformId) {
		this.platformId = platformId;
	}

	public String getMerchantNo() {
		return merchantNo;
	}

	public void setMerchantNo(String merchantNo) {
		this.merchantNo = merchantNo;
	}

	public String getTerminalNo() {
		return terminalNo;
	}

	public void setTerminalNo(String terminalNo) {
		this.terminalNo = terminalNo;
	}

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Double getFeePercent() {
		return feePercent;
	}

	public void setFeePercent(Double feePercent) {
		this.feePercent = feePercent;
	}

	public Double getCurrentBalance() {
		return currentBalance;
	}

	public void setCurrentBalance(Double currentBalance) {
		this.currentBalance = currentBalance;
	}

	public Double getWarningAmount() {
		return warningAmount;
	}

	public void setWarningAmount(Double warningAmount) {
		this.warningAmount = warningAmount;
	}

	public Boolean getAvailable() {
		return available;
	}

	public void setAvailable(Boolean available) {
		this.available = available;
	}

}
